package com.ruoyi.network.edge;

import java.nio.channels.SocketChannel;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

import com.ruoyi.network.common.NioSocket;


public class EdgeContext {
	// 外网
	public static Map<NioSocket, Date> outers = new ConcurrentHashMap<NioSocket, Date>();
	// 内网
	public static Map<NioSocket, Date> inners = new ConcurrentHashMap<NioSocket, Date>();
	// 所有
	public static Map<NioSocket, Date> all = new ConcurrentHashMap<NioSocket, Date>();
	public static Map<SocketChannel, NioSocket> pairs = new ConcurrentHashMap<SocketChannel, NioSocket>();
	public static List<NioEdgeClient> clients = new CopyOnWriteArrayList<NioEdgeClient>();

}
